﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;

namespace ModeloGaleriaNET
{
    public class UsuarioFilter
    {
        private string condition;
        private List<ObjectParameter> parameters;
        private bool? isSubType;

        public UsuarioFilter(string condition, List<ObjectParameter> parameters = null)
        {
            this.condition = condition;

            if (parameters == null)
            {
                this.parameters = new List<ObjectParameter>();
            }
            else
            {
                this.parameters = parameters;
            }

            this.isSubType = null;
        }

        public bool? IsSubType
        {
            get { return isSubType; }
            set { isSubType = value; }
        }

        public String Condition
        {
            get { return condition; }
        }

        public List<ObjectParameter> Parameters
        {
            get { return parameters; }
        }
    }
}
